package com.demo.service;

import com.demo.pojo.dto.TeacherListDTO;
import com.demo.pojo.entity.Teacher;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author lenovo
* @description 针对表【teacher】的数据库操作Service
* @createDate 2025-09-11 17:15:14
*/
public interface TeacherService extends IService<Teacher> {

    Teacher selectById(Integer id);

    void saveTeacher(Teacher teacher);

    void updateTeacher(Teacher teacher);

    Map<String, Object> listPage(TeacherListDTO teacherListDTO);

    /**
     * 教师登录（工号 + 身份证后六位）
     */
    Teacher login(Long teNo, String idTail6);

}
